package day1025_1;

class  ScoreException  extends  Exception{
    ScoreException(String msg){
        super(msg);
    }
}

public class E3 {
    public static void main(String[] args)throws  ScoreException{
        int score=-1;
        if(score<0  || score>0){
            throw  new ScoreException("成绩超范围了");
        }//用判断成绩是否超范围了，如果超范围throw ScoreException
    }
}
